home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
utility
/
utilcli
/
abortpkt.lzh
/
AbortPkt
/
jumptable.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-11-06
|
707b
|
34 lines
/* jumptable.h */
#define ASM __asm __saveds
#define DEC_LVO(name) extern LVO## name
#define DEC_ASM(name) extern name## Stub
#define DEC_OLD(name) LONG (*ASM name## O) ()
#define DEC_NEW(name) LONG ASM name## R ()
#define DECLARE_PATCH(name) DEC_OLD(name); DEC_NEW(name); DEC_LVO(name); DEC_ASM(name);
struct LVOTable
{
LONG lt_LVO;
struct Library *lt_LibBase;
ULONG lt_oldFunction;
ULONG lt_newFunction;
};
#define NUMBEROFFUNCTIONS 1
struct JumpTable
{
struct SignalSemaphore jt_Semaphore;
UWORD pad_word;
struct Task *jt_Owner;
UBYTE jt_Function[NUMBEROFFUNCTIONS * 6];
};
/* Prototypes */
char *InstallWedge (VOID);
BOOL RemoveWedge (VOID);
struct JumpTable *GetJumpTable (UBYTE *name);